package com.qijian.quality.domain;

import com.qijian.common.enums.ApprovalDescriptionEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;

/**
 * 质检结果记录对象 inspection_result_record
 *
 * @author qijian
 * @date 2025-03-28
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("inspection_result_record")
public class InspectionResultRecord extends BaseEntity{
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "ID")
    private Long id;

    @Excel(name = "质检来源id")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "质检来源id")
    private Long sourceId;

    @Excel(name = "质检来源类型")
    @ApiModelProperty(value = "质检来源类型")
    private String sourceType;

    @Excel(name = "检验方案表id")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "检验方案表id")
    private Long inspectionSchemeId;

    @Excel(name = "工序名称")
    @ApiModelProperty(value = "工序名称")
    private String processName;

    @Excel(name = "是否合格")
    @ApiModelProperty(value = "是否合格")
    private Boolean isQualified;

    @Excel(name = "备注")
    @ApiModelProperty(value = "备注")
    private String remark;

}
